cmake_minimum_required(VERSION 3.0)

project(plane)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

set(CMAKE_BUILD_TYPE Debug)

include_directories(${CMAKE_SOURCE_DIR}/include)

add_executable(plane PlaneGame.hpp main.cpp  Hero.h  Hero.cpp GameState.h Sprite.h Sprite.cpp BarButton.h BarButton.cpp)

#link_directories(${CMAKE_SOURCE_DIR}/lib)

target_link_libraries(plane ${CMAKE_SOURCE_DIR}/lib/SDL2.framework ${CMAKE_SOURCE_DIR}/lib/SDL2_image.framework)
